package kmi.droid.particles.sample;

import android.graphics.Canvas;
import android.graphics.Paint;
import kmi.droid.animatron.Particle;

public class SimpleParticle extends Particle
{
	private Paint paint;
	private float radius;

	public SimpleParticle(float radius, float lifetime, int color)
	{
		setLifetime(lifetime);
		paint = new Paint();
		paint.setColor(color);
		this.radius = radius;
	}

	@Override
	public void draw(Canvas canvas)
	{
		canvas.drawCircle(getPosition().X, getPosition().Y, radius, paint);
	}
}
